<template>
	<view class="content">
		<tabsTop tabName="我的返现"></tabsTop>
		<!-- 无优惠券 -->
		<view style="min-height: 578px;">
			<view class="noOffers">
				<view style="font-size: 13px;text-align: center;">暂无返现</view>
				<button @click="goHome">进店逛逛</button>
			</view>
		</view>
		<!-- 底部赞助信息 -->
		<botSponsor></botSponsor>
	</view>
</template>

<script>
	const app = getApp();
	import tabsTop from "@/components/tabs/tabs-top.vue";
	import tabsBottom from "@/components/tabs/tabs-bottom.vue";
	import botSponsor from "@/components/botsponsor/sponsor.vue"
	export default {
		components: { //轮播图组件
			tabsTop,
			tabsBottom,
			botSponsor // 底部赞助商
		},
		data() {
			return {}
		},
		onLoad() {

		},
		methods: {
			openPopup() {
				this.popupVisible = true;
			},
			closePopup() {
				this.popupVisible = false;
				this.exchangeCode = '';
			},
			exchangeCoupon() {
				// 实现兑换逻辑的代码
				console.log('兑换码：', this.exchangeCode);
				// 这里可以编写处理兑换逻辑的代码
				// 成功后关闭弹窗等操作
				this.closePopup();
			},
			goHome(){
				uni.reLaunch({
					url: "/pages/index/index"
				})
			}
		}
	}
</script>

<style>
	.fixed-button {
		position: fixed;
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);
		padding: 10px 20px;
		cursor: pointer;
		width: 100%;
		text-align: center;
	}

	button {
		font-size: 12px;
		color: red;
		border-radius: 18px;
		border: 1px solid;
		margin-top: 18px;
	}

	.noOffers {
		position: absolute;
		top: 46%;
		left: 50%;
		transform: translate(-50%, -50%);
	}
</style>